package com.centaline.androidsalesblog.activities.mine;


import android.webkit.WebResourceError;
import android.webkit.WebResourceRequest;
import android.webkit.WebView;
import android.webkit.WebViewClient;

import com.centaline.androidsalesblog.R;
import com.centaline.androidsalesblog.base.BaseActivity;
/**
 * 消息详情
 * Created by Ruan on 16/2/1.
 */
public class MsgDetailActivity extends BaseActivity {

    private WebView msg_web_view;
    @Override
    protected int setLayoutId() {
        return R.layout.activity_msg_detail;
    }

    @Override
    protected void findViews() {
        msg_web_view = (WebView) findViewById(R.id.msg_web_view);
    }

    @Override
    protected void initViews() {
        setUniversalToolbar("消息详情");
        msg_web_view.getSettings().setJavaScriptEnabled(true);
        msg_web_view.loadUrl("https://www.baidu.com/");

        msg_web_view.setWebViewClient(new WebViewClient(){
            @Override
            public void onReceivedError(WebView view, WebResourceRequest request, WebResourceError error) {
                super.onReceivedError(view, request, error);
            }
        });

    }
}
